{yun:}include file="$comstyle/header.htm"{/yun} 
<script src="{yun:}$config.sy_weburl{/yun}/js/lssave.js?v={yun:}$config.cachecode{/yun}" type="text/javascript"></script> 
<script src="{yun:}$config.sy_weburl{/yun}/js/binding.js?v={yun:}$config.cachecode{/yun}"></script> 
<script src="{yun:}$config.mapurl{/yun}"></script>
<script type="text/javascript" src="{yun:}$config.sy_weburl{/yun}/js/map.js?v={yun:}$config.cachecode{/yun}"></script>

<script language="javascript">


	function checkpostcom(){
		
		var ifcheck = check_form(document.myform.cityid.value=="",'by_cityid') & 
		check_form(document.myform.address.value=="",'by_address');

		if(ifcheck==0){return false;} 

		$("#infoform").submit();
		layer.load('执行中，请稍候...',0);
	} 	
</script> 

<div class="w1000">
	<div class="admin_mainbody"> 
	{yun:}include file="$comstyle/left.htm"{/yun} 
    <div class=right_box>
		<div class=admincont_box>

        <iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe>
        <form id="infoform" name="myform" method="post" target="supportiframe" action="index.php?c=companyaddress&act=save" autocomplete="off" enctype="multipart/form-data" class="layui-form">
			<div class="com_tit"><span class="com_tit_span">企业资料</span></div>
			<div class="job_list_tit">
				<ul class="">
					<li><a href="index.php?c=info">基本信息</a></li>
					<li><a href="index.php?c=map">企业地图</a></li>
					<li><a href="index.php?c=news">企业新闻</a></li>
					<li><a href="index.php?c=show">企业环境</a></li>
					<li><a href="index.php?c=product">企业产品</a></li>
					<li class="job_list_tit_cur"><a href="index.php?c=companyaddress">企业地址</a></li>
				</ul>
			</div>

			<div class="clear"></div>
			

           <div class="com_release_box">
			<ul>
				<li>
					<div class="com_release_name"><i class="ff0">*</i> 所在地</div>
					
					<div class="com_release_select com_release_selectw145">
						<div class="layui-input-inline">
							<select name="provinceid" lay-filter="citys" id="provinceid">
								<option value="">请选择</option>
								{yun:}foreach from=$city_index key=j item=v{/yun}
									<option value="{yun:}$v{/yun}" {yun:}if $row.provinceid == $v{/yun} selected{yun:}/if{/yun}>{yun:}$city_name[$v]{/yun}</option>
								{yun:}/foreach{/yun}
							</select>
						</div>  
					</div>

					<div class="com_release_select com_release_selectw145">
						<div class="layui-input-inline">
							<select name="cityid" lay-filter="citys" id="cityid">
								<option value="">请选择</option>
								{yun:}foreach from=$city_type[$row.provinceid] key=j item=v{/yun}
									<option value="{yun:}$v{/yun}" {yun:}if $row.cityid==$v{/yun} selected{yun:}/if{/yun}>{yun:}$city_name[$v]{/yun}</option>
								{yun:}/foreach{/yun}
							</select>
						</div>  
					</div>
                    <div class="com_release_select com_release_selectw145">
						<div class="layui-input-inline" id="cityshowth" {yun:}if $row.three_cityid<1{/yun}style="display:none"{yun:}/if{/yun}>
							<select name="three_cityid" id="three_cityid">
								<option value="">请选择</option>
								{yun:}foreach from=$city_type[$row.cityid] key=j item=v{/yun}
									<option value="{yun:}$v{/yun}" {yun:}if $row.three_cityid==$v{/yun} selected{yun:}/if{/yun}>{yun:}$city_name[$v]{/yun}</option>
								{yun:}/foreach{/yun}
							</select>
						</div>  
					</div>
					<span id="by_cityid" class="errordisplay">请选择所在地</span> 
				</li>
				<li>
					<div class="com_release_name"><i class="ff0">*</i> 公司地址</div>
					<div class="com_release_cont_text com_info_tip">
						<input type="text" id="address" name="address" size="45" value="{yun:}$row.address{/yun}" class="layui-input"/>
					</div>
					<span id="by_address" class="errordisplay">请填写正确的公司地址</span> 
				</li>

				<li>
					<input id="companyaddresid" name="companyaddresid" value="{yun:}$row.id{/yun}" type="hidden"/>
					<input class="btn_01" style="margin-left:-3px" type="button" onclick="checkpostcom()" value="保存信息">
					<input id="save" name="save" value="{yun:}$row.linkman{/yun}" type="hidden"/>
				</li>
            </ul>
            <div class="clear"></div>
          </div>
         
		  <div class="clear"></div>
        </form>
		<div class="clear"></div>
      </div>
    </div>
  </div>
</div>  
<div class="clear"></div>

 
<script language=javascript src='{yun:}$config.sy_weburl{/yun}/data/plus/city.cache.js?v={yun:}$config.cachecode{/yun}'></script>
<script language=javascript src='{yun:}$config.sy_weburl{/yun}/js/city.js?v={yun:}$config.cachecode{/yun}'></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui.upload.js?v={yun:}$config.cachecode{/yun}" type='text/javascript'></script> 


{yun:}include file="$comstyle/footer.htm"{/yun}